﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020002FD RID: 765
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ClientObjUploadScRsp : IMessage<ClientObjUploadScRsp>, IMessage, IEquatable<ClientObjUploadScRsp>, IDeepCloneable<ClientObjUploadScRsp>, IBufferMessage
	{
		// Token: 0x170009E5 RID: 2533
		// (get) Token: 0x06002239 RID: 8761 RVA: 0x00060ADD File Offset: 0x0005ECDD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ClientObjUploadScRsp> Parser
		{
			get
			{
				return ClientObjUploadScRsp._parser;
			}
		}

		// Token: 0x170009E6 RID: 2534
		// (get) Token: 0x0600223A RID: 8762 RVA: 0x00060AE4 File Offset: 0x0005ECE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ClientObjUploadScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170009E7 RID: 2535
		// (get) Token: 0x0600223B RID: 8763 RVA: 0x00060AF6 File Offset: 0x0005ECF6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ClientObjUploadScRsp.Descriptor;
			}
		}

		// Token: 0x0600223C RID: 8764 RVA: 0x00060AFD File Offset: 0x0005ECFD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ClientObjUploadScRsp()
		{
		}

		// Token: 0x0600223D RID: 8765 RVA: 0x00060B08 File Offset: 0x0005ED08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ClientObjUploadScRsp(ClientObjUploadScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.data_ = ((other.data_ != null) ? other.data_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600223E RID: 8766 RVA: 0x00060B54 File Offset: 0x0005ED54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ClientObjUploadScRsp Clone()
		{
			return new ClientObjUploadScRsp(this);
		}

		// Token: 0x170009E8 RID: 2536
		// (get) Token: 0x0600223F RID: 8767 RVA: 0x00060B5C File Offset: 0x0005ED5C
		// (set) Token: 0x06002240 RID: 8768 RVA: 0x00060B64 File Offset: 0x0005ED64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170009E9 RID: 2537
		// (get) Token: 0x06002241 RID: 8769 RVA: 0x00060B6D File Offset: 0x0005ED6D
		// (set) Token: 0x06002242 RID: 8770 RVA: 0x00060B75 File Offset: 0x0005ED75
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ClientObjDownloadData Data
		{
			get
			{
				return this.data_;
			}
			set
			{
				this.data_ = value;
			}
		}

		// Token: 0x06002243 RID: 8771 RVA: 0x00060B7E File Offset: 0x0005ED7E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ClientObjUploadScRsp);
		}

		// Token: 0x06002244 RID: 8772 RVA: 0x00060B8C File Offset: 0x0005ED8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ClientObjUploadScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.Data, other.Data) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002245 RID: 8773 RVA: 0x00060BDC File Offset: 0x0005EDDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.data_ != null)
			{
				num ^= this.Data.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002246 RID: 8774 RVA: 0x00060C31 File Offset: 0x0005EE31
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002247 RID: 8775 RVA: 0x00060C39 File Offset: 0x0005EE39
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002248 RID: 8776 RVA: 0x00060C44 File Offset: 0x0005EE44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.data_ != null)
			{
				output.WriteRawTag(34);
				output.WriteMessage(this.Data);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002249 RID: 8777 RVA: 0x00060CA0 File Offset: 0x0005EEA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.data_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Data);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600224A RID: 8778 RVA: 0x00060CF8 File Offset: 0x0005EEF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ClientObjUploadScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.data_ != null)
			{
				if (this.data_ == null)
				{
					this.Data = new ClientObjDownloadData();
				}
				this.Data.MergeFrom(other.Data);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600224B RID: 8779 RVA: 0x00060D60 File Offset: 0x0005EF60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600224C RID: 8780 RVA: 0x00060D6C File Offset: 0x0005EF6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 34U)
				{
					if (num != 56U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.data_ == null)
					{
						this.Data = new ClientObjDownloadData();
					}
					input.ReadMessage(this.Data);
				}
			}
		}

		// Token: 0x04000DF0 RID: 3568
		private static readonly MessageParser<ClientObjUploadScRsp> _parser = new MessageParser<ClientObjUploadScRsp>(() => new ClientObjUploadScRsp());

		// Token: 0x04000DF1 RID: 3569
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000DF2 RID: 3570
		public const int RetcodeFieldNumber = 7;

		// Token: 0x04000DF3 RID: 3571
		private uint retcode_;

		// Token: 0x04000DF4 RID: 3572
		public const int DataFieldNumber = 4;

		// Token: 0x04000DF5 RID: 3573
		private ClientObjDownloadData data_;
	}
}
